package system.student.entity;

public class StudentCourseDetail {
    private Integer id;//id
    private Integer studentId;//学生id
    private Integer courseId;//课程id
    private Integer score;//成绩
    private String teacherName;//教师名称
    private String courseName;//课程名称

    @Override
    public String toString() {
        return String.format("%-5d | %-10d | %-10d | %-5d | %-15s | %-20s",
                id, studentId, courseId, score, teacherName, courseName);
    }

    public StudentCourseDetail(){}

    public StudentCourseDetail(Integer id, Integer studentId, Integer courseId, Integer score, String teacherName, String courseName){
        this.id = id;
        this.studentId = studentId;
        this.courseId = courseId;
        this.score = score;
        this.teacherName = teacherName;
        this.courseName = courseName;
    }
    public Integer getId() {return id;}

    public void setId(Integer id) {this.id = id;}

    public Integer getStudentId() {return studentId;}

    public void setStudentId(Integer studentId) {this.studentId = studentId;}

    public Integer getCourseId() {return courseId;}

    public void setCourseId(Integer courseId) {this.courseId = courseId;}

    public Integer getScore() {return score;}

    public void setScore(Integer score) {this.score = score;}

    public String getTeacherName() {return teacherName;}

    public void setTeacherName(String teacherName) {this.teacherName = teacherName;}

    public String getCourseName() {return courseName;}

    public void setCourseName(String courseName) {this.courseName = courseName;}

}

